package day5;

import java.util.Scanner;

public class laoshijiang {
	public static void main(String[] args) {

		System.out.println("请输入学生人数:");
		Scanner sc = new Scanner(System.in);
		int renshu = sc.nextInt();
		student[] stus = new student[renshu];
		for (int i = 0; i < stus.length; i++) {
			student stu = new student();
			System.out.println("请输入学号：");
			Scanner idScanner = new Scanner(System.in);
			int id = idScanner.nextInt();
			stu.id = id;
			System.out.println("请输入姓名：");
			Scanner nameScanner = new Scanner(System.in);
			String name = nameScanner.next();
			stu.name = name;

		}

	}

}
